package com.mikao.controller.user;

import com.mikao.dto.bo.ReqDataTableDto;
import com.mikao.dto.vo.RspDataTableDto;
import com.mikao.dto.vo.WithdrawDto;
import com.mikao.service.WithdrawService;
import org.springframework.context.annotation.Scope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/management")
@Scope("prototype")
public class WithdrawController {

    private WithdrawService withdrawService;

    public WithdrawController(WithdrawService withdrawService) {
        this.withdrawService = withdrawService;
    }

    @GetMapping("/withdrawList")
    public RspDataTableDto<WithdrawDto> withdrawList(ReqDataTableDto dataTableDTO){
        return withdrawService.withdrawList(dataTableDTO);
    }
}
